package com.example.multi.data.provider.client;


import com.example.multi.data.provider.model.news.Showapi_res_result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "yiqing-news-client", url = "${yiqing.news-host}")
public interface YiqingNewsClient {

    @RequestMapping(value = "/", method = {RequestMethod.GET})
    Showapi_res_result query(@RequestParam("showapi_appid") String showapi_appid,
                             @RequestParam("showapi_timestamp") String showapi_timestamp,
                             @RequestParam("showapi_sign") String showapi_sign
    );


}
